﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ChangePasswor.aspx.cs" Inherits="Manage_basisset_ChangePasswor" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
     <link rel="stylesheet" type="text/css" href="../skin/css/base.css" />
    <script type="text/javascript">

        function checkForm() {
          
            var pwd = document.getElementById("txtpwd");
            var confirmpwd = document.getElementById("txtconfirmpwd");
            var oldpwd = document.getElementById("txtoldpwd");

            if (oldpwd.value.length == 0) {
                alert("请输入原密码！");
                oldpwd.focus();
                return false;
            }
            if (pwd.value.length == 0) {
                alert("新密码不能为空！");
                pwd.focus();
                return false;
            }
            if (confirmpwd.value.length == 0) {
                alert("确认密码不能为空！");
                confirmpwd.focus();
                return false;
            }
            if (pwd.value != confirmpwd.value) {
                alert(" 2次密码输入不一致,请重新输入！");
                pwd.focus();
                return false;
            }
        }
  </script>
    <style type="text/css">
        .style1
        {
            width: 49%;
        }
      
.STYLE4 {
	font-size: 16px;
	color: #FF0000;
}
.STYLE5 {color: #FF0000}
.cbox{ border:none}
   
    </style>
</head>
<body>
    <form id="form1" runat="server">
     <asp:ScriptManager ID="ScriptManager1" runat="server"  EnableScriptGlobalization="True" EnableScriptLocalization="True">
        </asp:ScriptManager>
    <!--  快速转换位置按钮  -->
    
   
    <table width="98%" border="0" cellpadding="0" cellspacing="1" bgcolor="#D1DDAA" align="center">
        <tr>
            <td height="26" background="../skin/images/newlinebg3.gif">
                <table width="98%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td align="center"><span style="font-size:14px; font-weight:bold">修改密码</span></td>
                       
                    </tr>
                </table>
            </td>
        </tr>
    </table>
<!--  内容列表   -->
<asp:UpdatePanel ID="up1" runat="server" UpdateMode="Conditional">
    <ContentTemplate>
    <div >
    
      <table width="98%" border="0" cellpadding="2" cellspacing="1" bgcolor="#D1DDAA" align="center" style="margin-top:8px">
        <tr bgcolor="#E7E7E7">
          <td height="24" colspan="2" background="../skin/images/tbg.gif"><div align="left" >
              </div></td>
        </tr>
       
        <tr align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='#FCFDEE';" onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22" >
          <td  align="right" class="style1">
              请输入原密码：
                  <asp:HiddenField ID="hdfuserid" runat="server" Value="0" />
            </td>
            <td align="left"><asp:TextBox ID="txtoldpwd" runat="server" TextMode="Password"></asp:TextBox><span class="STYLE5">*</span></td>
        </tr>
       <tr align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='#FCFDEE';" onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22" >
         <td  align="right" class="style1">
              请输入新密码：
                 
            </td>
            <td align="left"><asp:TextBox ID="txtpwd" TextMode="Password" runat="server"></asp:TextBox><span class="STYLE5">*</span></td>
        </tr>
          <tr align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='#FCFDEE';" onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22" >
           <td align="right" class="style1">
              请再输一次新密码：
                 
            </td>
            <td align="left"><asp:TextBox ID="txtconfirmpwd" runat="server" TextMode="Password"></asp:TextBox><span class="STYLE5">*</span></td>
        </tr>
        
      </table>
      <table width='98%'  border='0' cellpadding='1' cellspacing='1' bgcolor='#CBD8AC' align="center" style="margin-top:8px">
        <tr bgcolor='#EEF4EA'>
          <td background='skin/images/wbg.gif' align='center'><table border='0' cellpadding='0' cellspacing='0'>
              <tr>
                <td width='90' align='center'>&nbsp;</td>
                <td width='70'>&nbsp;</td>
                <td width='160'><asp:Button ID="btnsave" runat="server" Text="保存" 
                        OnClientClick="return checkForm();false" onclick="btnsave_Click" /></td>
                <td width='110'>&nbsp;</td>
                <td>&nbsp;</td>
              </tr>
            </table></td>
        </tr>
      </table>
       </contenttemplate>
                      
    </asp:UpdatePanel>
    </form>
</body>
</html>
